import javax.swing.*;

/**
 * @Author: ghhgy
 * @Description: 运行主类
 * @DateTime: 2021/10/12 20:10
 **/

public class Main {
    public static void main(String[] args){
        String input=JOptionPane.showInputDialog(null," 在下方输入手机号码：\n","归属地查询",JOptionPane.PLAIN_MESSAGE);
        System.out.println(input);
        if(input!=null){
            JOptionPane.showMessageDialog(null, PhoneUtil.getCarrier(input), "查询结果",JOptionPane.PLAIN_MESSAGE);
        }

    }
}
